﻿using UnityEngine;

namespace Tools.Extensions
{
    //浮点数扩展
    public static class NumberExtensions
    {
        /// <summary>
        /// 浮点数相等性比较
        /// </summary>
        /// <param name="lhs"></param>
        /// <param name="rhs"></param>
        /// <returns></returns>
        public static bool Approx(this float lhs, float rhs) => Mathf.Approximately(lhs, rhs);
    }
}